package net.expectx.micro.shop.dao.bean;

import java.io.Serializable;

public class ProductBrand implements Serializable {
    private Long id;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Long gmtCreate;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Long gmtModified;

    /**
     * 逻辑删除（0：否，1：是）
     *
     * @mbg.generated
     */
    private Byte isDeleted;

    /**
     * 品牌
     *
     * @mbg.generated
     */
    private String productBrandName;

    /**
     * logo
     *
     * @mbg.generated
     */
    private String productBrandLogo;

    /**
     * 描述
     *
     * @mbg.generated
     */
    private String productBrandDesc;

    /**
     * 官网
     *
     * @mbg.generated
     */
    private String productBrandSiteUrl;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Long orders;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Long gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Long getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Long gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Byte getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Byte isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getProductBrandName() {
        return productBrandName;
    }

    public void setProductBrandName(String productBrandName) {
        this.productBrandName = productBrandName;
    }

    public String getProductBrandLogo() {
        return productBrandLogo;
    }

    public void setProductBrandLogo(String productBrandLogo) {
        this.productBrandLogo = productBrandLogo;
    }

    public String getProductBrandDesc() {
        return productBrandDesc;
    }

    public void setProductBrandDesc(String productBrandDesc) {
        this.productBrandDesc = productBrandDesc;
    }

    public String getProductBrandSiteUrl() {
        return productBrandSiteUrl;
    }

    public void setProductBrandSiteUrl(String productBrandSiteUrl) {
        this.productBrandSiteUrl = productBrandSiteUrl;
    }

    public Long getOrders() {
        return orders;
    }

    public void setOrders(Long orders) {
        this.orders = orders;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", productBrandName=").append(productBrandName);
        sb.append(", productBrandLogo=").append(productBrandLogo);
        sb.append(", productBrandDesc=").append(productBrandDesc);
        sb.append(", productBrandSiteUrl=").append(productBrandSiteUrl);
        sb.append(", orders=").append(orders);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ProductBrand other = (ProductBrand) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModified() == null ? other.getGmtModified() == null : this.getGmtModified().equals(other.getGmtModified()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()))
            && (this.getProductBrandName() == null ? other.getProductBrandName() == null : this.getProductBrandName().equals(other.getProductBrandName()))
            && (this.getProductBrandLogo() == null ? other.getProductBrandLogo() == null : this.getProductBrandLogo().equals(other.getProductBrandLogo()))
            && (this.getProductBrandDesc() == null ? other.getProductBrandDesc() == null : this.getProductBrandDesc().equals(other.getProductBrandDesc()))
            && (this.getProductBrandSiteUrl() == null ? other.getProductBrandSiteUrl() == null : this.getProductBrandSiteUrl().equals(other.getProductBrandSiteUrl()))
            && (this.getOrders() == null ? other.getOrders() == null : this.getOrders().equals(other.getOrders()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModified() == null) ? 0 : getGmtModified().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        result = prime * result + ((getProductBrandName() == null) ? 0 : getProductBrandName().hashCode());
        result = prime * result + ((getProductBrandLogo() == null) ? 0 : getProductBrandLogo().hashCode());
        result = prime * result + ((getProductBrandDesc() == null) ? 0 : getProductBrandDesc().hashCode());
        result = prime * result + ((getProductBrandSiteUrl() == null) ? 0 : getProductBrandSiteUrl().hashCode());
        result = prime * result + ((getOrders() == null) ? 0 : getOrders().hashCode());
        return result;
    }
}